{include file="header"}

<div class="body">
	<div class="nav"><a href="/xcxmb/public/admin/first/index">首页</a> > <a href="/xcxmb/public/admin/article/index">文章管理</a></div>
	<div class="addbtn">
		<a href="add" class="addbtn">添加文章</a>
	</div>  

	<form action="index" method="get">
	<div class="search">
	<input type="hidden" name="app" id="app" value="article" />
	<input type="hidden" name="act" id="act" value="index" />
	<span>ID</span><input title="" type="text" name="id" id="id" value="{$id}" />
	<span>关键词</span><input title="" type="text" name="keyword" id="keyword" value="{$keyword}" />
	<input type="submit" class="btn" value="搜 索" class="btn" /> 
	<div class="clear"></div>
	</div>
	</form>
	
	<div class="list">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr class="h">
				<th>ID</th>
				<th>标题</th>
				<th>作者</th>
				<th>图片</th>
				<th>内容</th>
				<!-- <th>所属分类</th> -->
				<th>点击量</th>
				<th>显示</th>
				<th>添加时间</th>
				<th>操作</th>
			</tr>
			{volist name="list" id="row"}
			<tr bgcolor="white">
				<td>{$row.id}</td>
				<td style="text-align:left;"><a href="?app=article&id={$row.id}&act=detail">{$row.title}</a></td>
				<td align="center">{$row.writer}</td>
				<td height="60">
					<img src="{$row.pic}" height="50" />
				</td>
				<td style="text-align:left;">{$row.content}</td>
				

				<td align="center">{$row.clicks}</td>
				<td align="center">{if $row.status==1}不显示{else}显示{/if}</td>
				<td align="center">{$row.add_time|date="Y-m-d h:i:s",###}</td>
				<td align="center">
					<a href="edit?id={$row.id}" class="ico2"></a>
					<a class="ico3 delete" href="delete?id={$row.id}"></a>
				</td> 
			</tr>
			{/volist}
		</table>
		
		<div class="clear"></div>
		<div class="mypage" style="text-align:right">
			共 {$maxpages} 个数据 {$page}
		</div>
	</div>
</div>

{include file="footer"}